package com.irdstudio.tdp.executor.core.plugin.util;

import org.apache.ibatis.jdbc.SQL;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ProxySQL extends SQL {

    private Logger log = LoggerFactory.getLogger(ProxySQL.class);

    @Override
    public String toString() {
        String sql = super.toString();
        if (log.isDebugEnabled()) {
            log.debug("SQL generate result \n{}", sql);
        }
        return sql;
    }
}

